/**
 * 
 */
package com.hanhai.zrb.api.biz.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.hanhai.zrb.model.message.MessageInfo;
import com.hanhai.zrb.model.message.MessageReceive;

/**
 * @author ricky
 *
 */
public interface MessageQueryService {

	List<MessageReceive> queryReceiveMessage(Long uid, Integer read);

	List<MessageReceive> queryReceiveMessageByMaxId(Long receiverUid,
			Integer read, Long maxId, Integer limit);

	PageInfo queryPageReceiveMessage(Long uid, Integer read, int pageSize,
			int pageNum);

	List<MessageInfo> querySendMessage(Long uid, Integer status);

	int queryNewReceiveCount(Long uid);

	/**
	 * 消息已读控制
	 * 
	 * @param receiverUid
	 * @param MessageReceiveId
	 * @return
	 */
	boolean readMessage(Long receiverUid, Long readMessageReceiveId);

	/**
	 * 用户消息批量已读处理
	 * 
	 * @param receiverUid
	 * @param readMessageReceiveIds
	 * @return
	 */
	int readMessageBatch(Long receiverUid,
			List<Long> readMessageReceiveIds);

}
